package com.ruoyi.warning.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 预警记录对象 warning_record
 *
 * @author ruoyi
 * @date 2024-11-24
 */
@Data //添加
@TableName("warning_record") //添加
public class WarningRecord extends BaseEntity implements Serializable //修改
        {
private static final long serialVersionUID=1L;

    /** 预警记录id */
 //添加
        @TableId(value = "id", type = IdType.AUTO)
    private String warningRecordId;

    /** 系统 */
            @Excel(name = "系统")
    private String systemType;

    /** 点号 */
            @Excel(name = "点号")
    private String pointNo;

    /** 地址 */
            @Excel(name = "地址")
    private String baseStation;

    /** 传感器类型 */
            @Excel(name = "传感器类型")
    private String sensorType;

    /** 分析结果 */
            @Excel(name = "分析结果")
    private String analysisResult;

    /** 预警开始时间 */
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
            @Excel(name = "预警开始时间" , width = 30, dateFormat = "yyyy-MM-dd")
    private Date warningStartTime;

    /** 分析结果描述 */
            @Excel(name = "分析结果描述")
    private String analysisResultDescription;

    /** 分析时间 */
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
            @Excel(name = "分析时间" , width = 30, dateFormat = "yyyy-MM-dd")
    private Date analysisTime;

    /** 备用字段1 */
            @Excel(name = "备用字段1")
    private String one;

    /** 备用字段2 */
            @Excel(name = "备用字段2")
    private String two;

    /** 备用字段3 */
            @Excel(name = "备用字段3")
    private String three;

        }

